package com.project.frba.bi.dashboard;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

import com.project.frba.bifront.client.model.Dashboard;

public class QuadDashboardRowMapper implements RowMapper {

	public Object mapRow(ResultSet rs, int index) throws SQLException {
		Dashboard dashboard = new Dashboard(Dashboard.QUAD);
		
		dashboard.setId(rs.getLong(1));
		dashboard.setName(rs.getString(2));
		dashboard.setFirst(rs.getString(4));
		dashboard.setSecond(rs.getString(5));
		dashboard.setThird(rs.getString(6));
		dashboard.setFourth(rs.getString(7));
		
		return dashboard;
	}

}
